//
//  background.swift
//  ClockIn
//
//  Created by enrique leo on 10/8/21.
//

import Foundation
import SwiftUI

func GradientBackground() -> LinearGradient {
    let gradientStart = Color(red: 209.0 / 255, green: 140.0 / 255, blue: 221.0 / 255)
    let gradientEnd = Color(red: 239.0 / 255, green: 172.0 / 255, blue: 120.0 / 255)
    
    let lg = LinearGradient(
        gradient: Gradient(colors: [gradientStart, gradientEnd]),
        startPoint: UnitPoint(x: 0.5, y: 0),
        endPoint: UnitPoint(x: 0.5, y: 0.6))
    
    let date = "\(Date())"
    print(date.split(separator: " ")[0])

    return lg
}
